﻿using System;
using System.Collections.Generic;

namespace Bookvar.ObjectModel.Collections
{
    [Serializable]
    public class ResourceCollection : ObservableKeyedCollection<Guid, Resource>
    {
        public ResourceCollection()
        {
        }    
    
        public ResourceCollection( IEnumerable<Resource> items ) : base( items )
        {
        }

        protected override Guid GetKeyForItem( Resource item )
        {
            return item.ID;
        }
    }
}